public class StartFinalMDAssessEvent extends EventBase {
	private PatientBase patient;
	private Doctor doctor;
		
	public StartFinalMDAssessEvent(int id, PatientBase patient, Doctor doctor) {
		this.patient = patient;
		this.doctor = doctor;
	}

	public boolean canOccur(State state) {
		if(state.isMDAvailable())
			return true;
		else
			return false;
	}


	// Check this method because the nurse aspect is tricky and probably wrong
	public void execute(State s) {
		patient.setActivity(TreatmentType.FinalMDAssess);
		Simulator.addEvent(new EndPatientFinalMDAssessEvent(patient, Simulator.nextNormal(3, 2)));
		Simulator.addEvent(new EndMDFinalMDAssessEvent(doctor, Simulator.nextNormal(10, 3)));

	}
}
